using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DownSceneStoneTrigger : TriggerBase
{
    [SerializeField] private NPC_DownRoom _nPC_DownRoom; 
    protected override void OnTriggerExit2D(Collider2D other)
    {
        base.OnTriggerEnter2D(other);
        if (other.CompareTag("Player") == false)
            return;
        Vector2 direction = other.transform.position - _coll.bounds.center;
        
        if (direction.y > 0)
        {
            _nPC_DownRoom.SetTriggerSuccess();
        }
    }
}
